Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

reaver

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reaver

Minimal asset hashing CLI and API

  • 1.2.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

reaver

Minimal asset hashing CLI and API

Use as a CLI or programmatically.

Install

npm install --save-dev reaver

API

The API exposes a function.

reaver(files, options)

Moves the specified file(s), appending to their paths a hash of their contents. Directories and missing files are ignored.

If a manifest: true option is passed, it returns a map of file paths to the resulting hashes. The manifest always uses absolute paths.

reaver.rev(file, data)

This method will just return the hashed filename based on the provided data, without accessing the file system.

CLI

Usage

reaver [options] [file] [file] [file]

Invokes the reaver(files, options) API method, using minimist for option parsing.

Example

Usage example below

touch foo{,.js}
reaver *
ls
# foo.d41d8cd9    foo.d41d8cd9.js

License

MIT

FAQs

Package last updated on 20 Oct 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc